package com.libertyville.domain.orgmng;

import com.libertyville.common.framework.AuditableEntity;

import javax.persistence.*;

@Entity
@Table(name = "org_type")
public class OrgType extends AuditableEntity {

    @Id
    @Column(name = "org_type_code")
    private String orgTypeCode;

    @Column(name = "tenant_id")
    private Integer tenantId;

    @Column(name = "name")
    private String name;

    @Convert(converter = OrgTypeStatusConverter.class)
    @Column(name = "status_code")
    private OrgTypeStatus orgTypeStatus;

    public String getOrgTypeCode() {
        return orgTypeCode;
    }

    public void setOrgTypeCode(String orgTypeCode) {
        this.orgTypeCode = orgTypeCode;
    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OrgTypeStatus getOrgTypeStatus() {
        return orgTypeStatus;
    }

    public void setOrgTypeStatus(OrgTypeStatus orgTypeStatus) {
        this.orgTypeStatus = orgTypeStatus;
    }
}
